package com.hentie;

import com.hentie.drawlib.OpenGLRenderer;
import com.hentie.gamelib.Game;
import com.hentie.gamelib.PlatformGame;
import com.hentie.inputlib.Input;
import com.hentie.spritelib.SpriteData;
import com.hentie.spritelib.SpriteXMLParser;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;

public class GameActivity extends Activity {
    /** Called when the activity is first created. */
	//Create a new Input
	Input input = new Input();
	PlatformGame game;
	OpenGLRenderer renderer;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        GLSurfaceView view = new GLSurfaceView(this);
        
        
        
        renderer = new OpenGLRenderer(this);
        game = new PlatformGame(this,renderer);
Input.SetupInput(this);
        view.setRenderer(renderer);
        view.setOnTouchListener(input);
        setContentView(view);

        game.Initialize();
        
        game.start();
        
        int x =0;
    }
}